package user;

import book.BookList;
import operation.IOperation;

//父类
public abstract class User {
    protected String name; //姓名
    public IOperation[] iOperations;//只是定义并没有初始化大小

    public User(String name) {
        this.name = name;
    }
    public abstract int menu(); //菜单
    public void doOperation(int choice, BookList bookList){  //操作
        iOperations[choice].work(bookList);  //联系起来，查找BookList里面的书
    }
}
